namespace SimpleWebServices.Web.Mvc
{
    using System;
    using SimpleWebServices;
    using Xunit;

    public sealed class IViewResultFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(typeof(IViewResult).IsInterface);
        }

        [Fact]
        public void IViewResult_MasterName_get()
        {
            try
            {
                string value = (new IViewResultDummy() as IViewResult).MasterName;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }

        [Fact]
        public void IViewResult_MasterName_set()
        {
            try
            {
                (new IViewResultDummy() as IViewResult).MasterName = string.Empty;
                Assert.True(false);
            }
            catch (NotSupportedException)
            {
            }
        }
    }
}